package conson.tech.manage.coupons.entity.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * ClassName: CouponsBatchCenterVo
 * Description: 优惠券领券中心配置查询优惠券批次列表信息
 * Author: ZYF
 * Date: 2020/7/23
 * Version: 1.0
 */
@ApiModel(value = "conson.tech.manage.coupons.entity.vo.CouponsBatchCenterVo", description = "优惠券领券中心配置查询优惠券批次列表信息")
@Data
public class CouponsBatchCenterVo implements Serializable {

    private static final long serialVersionUID = 7794979213018531554L;
    /**
     * 优惠券批次id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long couponsId;

    /**
     * 批次名称
     */
    private String batchName;
    /**
     * 发放方式
     */
    private Integer providedType;

    /**
     * 剩余数量
     */
    private Integer stockNum;

    /**
     * 有效期-起期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 有效期-止期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

}
